package com.vimi8.ebb.auth.model;

import java.util.Objects;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;



/**
 * 组织成员实体,仅包含oauth认证和授权所需的必须字段.
 **/

/**
 * 组织成员实体,仅包含oauth认证和授权所需的必须字段.
 */
@ApiModel(description = "组织成员实体,仅包含oauth认证和授权所需的必须字段.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-14T13:41:13.913Z")

public class OrganizationEmp   {
  private String deptId = null;

  private String clientId = null;

  private String userId = null;

  private String job = null;

  private Integer hireDate = null;

  private Integer createTime = null;

  private Integer updateTime = null;



  public OrganizationEmp deptId(String deptId) {
    this.deptId = deptId;
    return this;
  }

   /**
   * 部门id.
   * @return deptId
  **/
  @ApiModelProperty(value = "部门id.")
  public String getDeptId() {
    return deptId;
  }

  public void setDeptId(String deptId) {
    this.deptId = deptId;
  }

  public OrganizationEmp clientId(String clientId) {
    this.clientId = clientId;
    return this;
  }

   /**
   * 客服端id.
   * @return clientId
  **/
  @ApiModelProperty(value = "客服端id.")
  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }

  public OrganizationEmp userId(String userId) {
    this.userId = userId;
    return this;
  }

   /**
   * 用户id.
   * @return userId
  **/
  @ApiModelProperty(value = "用户id.")
  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public OrganizationEmp job(String job) {
    this.job = job;
    return this;
  }

   /**
   * 工作.
   * @return job
  **/
  @ApiModelProperty(value = "工作.")
  public String getJob() {
    return job;
  }

  public void setJob(String job) {
    this.job = job;
  }

  public OrganizationEmp hireDate(Integer hireDate) {
    this.hireDate = hireDate;
    return this;
  }

   /**
   * 入职日期.
   * @return hireDate
  **/
  @ApiModelProperty(value = "入职日期.")
  public Integer getHireDate() {
    return hireDate;
  }

  public void setHireDate(Integer hireDate) {
    this.hireDate = hireDate;
  }

  public OrganizationEmp createTime(Integer createTime) {
    this.createTime = createTime;
    return this;
  }

   /**
   * 创建时间.
   * @return createTime
  **/
  @ApiModelProperty(value = "创建时间.")
  public Integer getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Integer createTime) {
    this.createTime = createTime;
  }

  public OrganizationEmp updateTime(Integer updateTime) {
    this.updateTime = updateTime;
    return this;
  }

   /**
   * 更新时间.
   * @return updateTime
  **/
  @ApiModelProperty(value = "更新时间.")
  public Integer getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Integer updateTime) {
    this.updateTime = updateTime;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OrganizationEmp organizationEmp = (OrganizationEmp) o;
    return Objects.equals(this.deptId, organizationEmp.deptId) &&
        Objects.equals(this.clientId, organizationEmp.clientId) &&
        Objects.equals(this.userId, organizationEmp.userId) &&
        Objects.equals(this.job, organizationEmp.job) &&
        Objects.equals(this.hireDate, organizationEmp.hireDate) &&
        Objects.equals(this.createTime, organizationEmp.createTime) &&
        Objects.equals(this.updateTime, organizationEmp.updateTime);
  }

  @Override
  public int hashCode() {
    return Objects.hash(deptId, clientId, userId, job, hireDate, createTime, updateTime);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OrganizationEmp {\n");
    
    sb.append("    deptId: ").append(toIndentedString(deptId)).append("\n");
    sb.append("    clientId: ").append(toIndentedString(clientId)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).append("\n");
    sb.append("    job: ").append(toIndentedString(job)).append("\n");
    sb.append("    hireDate: ").append(toIndentedString(hireDate)).append("\n");
    sb.append("    createTime: ").append(toIndentedString(createTime)).append("\n");
    sb.append("    updateTime: ").append(toIndentedString(updateTime)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

